import { ref } from 'vue'
import { defineStore } from 'pinia'

// const input_msg = ''
export const useInputMsgStore = defineStore('input', () => {
    const input_msg = ref('you are good at cs programming') 
    // const input_msg = ref('programming') 

    function change_current_msg(input_val: string) {
        console.log("input_current",input_val)
        input_msg.value = input_val
    }
    function clear() {
        input_msg.value = 'you are good at cs programming'
    }
    return {
        input_msg,
        change_current_msg,
        clear,
    }
})